package com.chenyue.cm.live.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author libingxing
 */
@Data
public class LiveList {

    @ApiModelProperty(value = "直播记录id")
    private Integer id;

    @ApiModelProperty(value = "赛事id")
    private Integer matchId;

    @ApiModelProperty(value = "主播id")
    private Integer liveId;

    @ApiModelProperty(value = "赛程id")
    private Integer arrangeId;

    @ApiModelProperty(value = "直播标题")
    private String title;

    @ApiModelProperty(value = "直播图片")
    private String liveLogo;

    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "赛事分类")
    private Integer matchType;

    @ApiModelProperty(value = "flv播放地址")
    private String flvPullUrl;

    @ApiModelProperty(value = "m3u8播放地址")
    private String m3u8PullUrl;

    @ApiModelProperty(value = "rtmp播放地址")
    private String rtmpPullUrl;

    @ApiModelProperty(value = "udp播放地址")
    private String udpPullUrl;

    @ApiModelProperty(value = "直播回放地址")
    private String videoUrl;

    @ApiModelProperty("赛程开始时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date arrangeStartTime;

    @ApiModelProperty("赛程结束时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date arrangeEndTime;

    @ApiModelProperty("主办方")
    private String hostUnit;

    @ApiModelProperty("主播名称")
    private String anchorName;

    @ApiModelProperty("主播头像")
    private String anchorHeadImg;

    @ApiModelProperty("在线人数")
    private int onlineCount;

    @ApiModelProperty(value = "主播类型(1普通主播2赛事主播)")
    private Integer type;
}
